// >> ext扩展
Ext = (function(ext){
	ext.formReset = function(form,btn){
		form.setTitle(btn ? btn.getText() : '');
		form.getForm().reset();
		form.expand();
		return this;
	};
	
	ext.formCollapse = function(form){
		form.setTitle('');
		form.getForm().reset();
		form.collapse();
		return this;
	};
	
	ext.formShowProgress = function(){
		Ext.Msg.show({
			 msg:"请求中,请稍候......",
			 width:200,
			 height: 80,
			 wait:true,
			 closable:true
		});
	};
	
	ext.formHideProgress = function(){
		Ext.Msg.hide();
	};
	
	return ext;
})(Ext = Ext || {});